package com.txts.road.admin.eventSys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.txts.road.admin.common.annotation.Excel;
import com.txts.road.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 赛事信息对象 event_info
 *
 * @author ruoyi
 * @date 2025-05-16
 */
public class EventInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 赛事名称 */
    @Excel(name = "赛事名称")
    private String name;

    /** 赛事介绍 */
    @Excel(name = "赛事介绍")
    private String description;

    /** 赛事图片 */
    @Excel(name = "赛事图片")
    private String image;

    /** 赛事状态 */
    @Excel(name = "赛事状态")
    private String status;

    /** 参赛车辆 */
    @Excel(name = "参赛车辆")
    private String cansaicheliang;

    /** 车辆数量 */
    @Excel(name = "车辆数量")
    private String cheliangshuliang;

    /** 赛事位置 */
    @Excel(name = "赛事位置")
    private String saishiweizhi;

    /** 赛事地址 */
    @Excel(name = "赛事地址")
    private String saishidizhi;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endtime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setCansaicheliang(String cansaicheliang)
    {
        this.cansaicheliang = cansaicheliang;
    }

    public String getCansaicheliang()
    {
        return cansaicheliang;
    }

    public void setCheliangshuliang(String cheliangshuliang)
    {
        this.cheliangshuliang = cheliangshuliang;
    }

    public String getCheliangshuliang()
    {
        return cheliangshuliang;
    }

    public void setSaishiweizhi(String saishiweizhi)
    {
        this.saishiweizhi = saishiweizhi;
    }

    public String getSaishiweizhi()
    {
        return saishiweizhi;
    }

    public void setSaishidizhi(String saishidizhi)
    {
        this.saishidizhi = saishidizhi;
    }

    public String getSaishidizhi()
    {
        return saishidizhi;
    }

    public void setStarttime(Date starttime)
    {
        this.starttime = starttime;
    }

    public Date getStarttime()
    {
        return starttime;
    }

    public void setEndtime(Date endtime)
    {
        this.endtime = endtime;
    }

    public Date getEndtime()
    {
        return endtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("description", getDescription())
                .append("image", getImage())
                .append("status", getStatus())
                .append("cansaicheliang", getCansaicheliang())
                .append("cheliangshuliang", getCheliangshuliang())
                .append("saishiweizhi", getSaishiweizhi())
                .append("saishidizhi", getSaishidizhi())
                .append("starttime", getStarttime())
                .append("endtime", getEndtime())
                .toString();
    }
}
